package cn.shujuhai.qtadmin.platform.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import cn.shujuhai.qtadmin.platform.pluging.search.SearchModel;

/**
 * BaseService
 *
 * @author dch798
 * @date 2021/10/05 16:36
 **/
public interface BaseService<T> extends IService<T> {

    /**
     * 查询列表
     * 
     * @param searchModel
     *            searchModel
     * @return return
     */
    List<T> list(SearchModel<T> searchModel);

    /**
     * 翻页查询
     * 
     * @param searchModel
     *            searchModel
     * @return return
     */
    IPage<T> page(SearchModel<T> searchModel);
}
